/// 交易类型
// The transaction type defines the type of transaction that you want to initiate. The available values are:
// SALE(1)
// VOID(2)
// CLOSE_BATCH(4)
class TransactionType {
  final int value;

  const TransactionType._(this.value);

  ///销售
  static const SALE = TransactionType._(1);

  ///作废交易
  static const VOID = TransactionType._(2);

  ///文档中没有退款
  static const REFUND = TransactionType._(3);

  ///关闭结算
  static const CLOSE_BATCH = TransactionType._(4);

  // 所有可能值
  static const values = [SALE, VOID, REFUND, CLOSE_BATCH];
}
